<?php


namespace App\Admin\Controller\Example;


use App\Admin\Controller\AdminBaseController;

class ExampleController extends AdminBaseController {
    /**
     * 示例页面
     * @return mixed
     */
    public function page() {
        $dateTime         = date('Y-m-d H:i:s');
        $exampleItemInfo  = [
            'id'         => 1,
            'email'      => 'stn@xinyartech.com',
            'name'       => 'stn',
            'status'     => 1,
            'pic_url'    => config('app.url'). '/favicon.ico',
            'created_at' => $dateTime,
            'updated_at' => $dateTime,
        ];
        $exampleItemTotal = 8;
        
        return $this->success([
            'total_count' => $exampleItemTotal,
            'list'        => array_pad([], $exampleItemTotal, $exampleItemInfo)
        ]);
    }
}